🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / feature / map / src / commonMain / kotlin / org / meshtastic / feature / map / MapTimeWindows.kt
Displaying Raw • Download
feature/map/src/commonMain/kotlin/org/meshtastic/feature/map/MapTimeWindows.kt renovate/fastlane-2.x-lockfile (056eed64) Text, 1.75 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.feature.map
T8b949e/**
* Whether a recorded moment falls inside this filter's window.
*
* For a position *track*, where the cutoff is the point's own timestamp rather than when the node was last heard from:
* a track is a history, so filtering it by the node's liveness would show all of it or none of it. Both map engines
* filter tracks this way and each wrote the comparison out itself.
*/
Tff7b72fun Te6edf3LastHeardFilterTb4b4b4.Td2a8ffincludesTb4b4b4(Te6edf3recordedAtSecondsTb4b4b4: Tffa657IntTb4b4b4, Te6edf3nowSecondsTb4b4b4: Tffa657LongTb4b4b4)Tb4b4b4: Tffa657Boolean Tff7b72=
Tff7b72this Tff7b72=Tff7b72= Te6edf3LastHeardFilterTb4b4b4.Te6edf3Any Tff7b72|Tff7b72| Te6edf3recordedAtSeconds Tff7b72> Te6edf3nowSeconds Tff7b72- Te6edf3seconds
T8b949e/**
* How recently a node must have been heard for the map to pulse it.
*
* Shared so the two engines pulse for the same reason at the same moment; the Google map draws an animated chip and the
* MapLibre map a circle layer, but "just heard" is one definition.
*/
Tff7b72const Tff7b72val Te6edf3RECENTLY_HEARD_SECONDSTb4b4b4: Tffa657Long Tff7b72= T79c0ff5
T8b949e/** Whether [lastHeard] is recent enough to pulse. */
Tff7b72fun Td2a8ffheardJustNowTb4b4b4(Te6edf3lastHeardTb4b4b4: Tffa657IntTb4b4b4, Te6edf3nowSecondsTb4b4b4: Tffa657LongTb4b4b4)Tb4b4b4: Tffa657Boolean Tff7b72= Tb4b4b4(Te6edf3nowSeconds Tff7b72- Te6edf3lastHeardTb4b4b4) Tff7b72<Tff7b72= Te6edf3RECENTLY_HEARD_SECONDS
Served by rngit 1.5.3 - Generated in 0.07s